package me.zhengjie.service.impl;


import me.zhengjie.entity.QueryRecord;
import me.zhengjie.service.QueryService;
import me.zhengjie.service.mapper.QueryMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class QueryServiceImpl implements QueryService {

	@Resource
	private QueryMapper queryMapper;


	@Override
	public List<QueryRecord> selectAllByParams(QueryRecord params) {
		return queryMapper.selectAllByParams(params);
	}

	@Override
	public List<QueryRecord> selectAllByEngineAndDatasourceAndQueryIdIn(Map<String, Object> params) {
		return queryMapper.selectAllByEngineAndDatasourceAndQueryIdIn(params);
	}

	@Override
	public List<QueryRecord> selectAllByDatasourceAndQueryIdsJoinBabel(Map<String, Object> params) {
		return queryMapper.selectAllByDatasourceAndQueryIdsJoinBabel(params);
	}
}
